package com.xbongbong.parent.pojo.list;

import com.xbongbong.paas.domain.entity.ext.PaasFormEntityExt;
import com.xbongbong.paas.toolbox.wrap.UserVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author 吴峰
 * @date 2021/12/15 19:23
 */
@Getter
@Setter
@ToString
public class FieldListPojo implements Serializable {
    private static final long serialVersionUID = 7456465874228532126L;

    private String corpid;

    private Long formId;

    private Long appId;

    /**
     * 是否默认分组 2 公海分组 1 系统分组 0是自定义分组
     */
    private Integer defaultGroup;
    /**
     * 分组id
     */
    private Long listGroupId;

    private Integer saasMark;

    private Integer businessType;

    private Integer subBusinessType;

    private UserVO userVO;
    /**
     * 表单实体
     */
    private PaasFormEntityExt form;

    public FieldListPojo() {
    }

    public FieldListPojo(String corpid, Long formId, Long appId, Integer defaultGroup, Long listGroupId, Integer saasMark, Integer businessType, Integer subBusinessType, UserVO userVO, PaasFormEntityExt form) {
        this.corpid = corpid;
        this.formId = formId;
        this.appId = appId;
        this.defaultGroup = defaultGroup;
        this.listGroupId = listGroupId;
        this.saasMark = saasMark;
        this.businessType = businessType;
        this.subBusinessType = subBusinessType;
        this.userVO = userVO;
        this.form = form;
    }

    public FieldListPojo(String corpid, Long formId, Integer saasMark, Integer businessType, UserVO userVO) {
        this.corpid = corpid;
        this.formId = formId;
        this.saasMark = saasMark;
        this.businessType = businessType;
        this.userVO = userVO;
    }
}
